package com.wencai.util;

import com.wencai.bean.BuyStock;
import com.wencai.bean.IndexStocks;
import com.wencai.bean.Stock;

import java.io.IOException;
import java.util.List;
import java.util.function.Function;

/**
 * @author wangpan
 * @date 2023/5/11
 */
@FunctionalInterface
public interface GainRateFunction {
    List<BuyStock> getTotalGainRate(String startTimePoint, String endTimePoint, Function<List<IndexStocks>, Stock> strategy, BuyStrategy buyStrategy, SellStrategy sellStrategy) throws IOException;
}
